package ${entityPack};

   /**
    * @ClassName ${className} 实体类
    * @date ${.now?date} 
    * @author ${author}
    */ 

public class ${className} {
//以下为循环实体类的代码
<#list columns! as value>
    //${value.comment}
    private ${value.jtype} ${value.jname};
</#list>

	public ${className}(){};
	
	public ${className}(
	<#list columns! as value>
		<#if value_index < columns?size-1>
    		${value.jtype} ${value.jname},
    	<#else>
    		${value.jtype} ${value.jname}
    	</#if>	
	</#list>
		){
			super();
		<#list columns! as value>
    		this.${value.jname}=${value.jname};	
		</#list>
	};

<#list columns! as value>
    public ${value.jtype} get${value.jname?cap_first}(){
        return ${value.jname};
    }
    public void set${value.jname?cap_first} (${value.jtype} ${value.jname}){
        this.${value.jname} = ${value.jname};
    }
</#list>

	@Override
	public String toString() {
		return "${className} ["
<#list columns! as value>		
		+"  ${value.jname}=" + ${value.jname} 
</#list>
		+"]";		
	}
}